<%-- 
    Document   : index
    Created on : 23/09/2011, 08:45:22
    Author     : 0433101
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Bem vindo!!!</title>
        <script>
            function clean(){
                document.getElementById("message").innerHTML = ""; 
            }
        </script>
    </head>
    <body>
        <form method="post" action="MainAccessServlet" onsubmit="clean()" accept-charset="iso-8859-1,utf-8">
            <%
                String erro = (String) request.getAttribute("erro");
                if(erro == null){
                    erro = "";
                }
            %>
            <div id="message"><%=erro%></div>
            Login: <input type="text" name="login"/><br>
            Senha: <input type="password" name="senha"/><br>
            <input type="submit" value="Logar"/>
            <input type="reset" value="Limpar"/>
            <input type="hidden" value="loginProcessor" name="cmd"/>
        </form>
    </body>
</html>
